// 检查token是否已过期
private boolean isTokenExpired(String token) {
    Date expiration = getExpirationDateFromToken(token);
    return expiration != null && expiration.before(new Date());
}

// 只保留这个方法，并移除@Override注解
public boolean validateToken(String token) {
    try {
        Jwts.parserBuilder()
                .setSigningKey(getSigningKey())
                .build()
                .parseClaimsJws(token);
        return !isTokenExpired(token);
    } catch (Exception e) {
        return false;
    }
}